<template>
  <div>
    <i class="iconfont iconshouye"></i>
    {{shop.shop_name}}
    <!-- <van-card
      :desc="shop.shop_address"
      :title="shop.shop_name"
      :thumb="shop.shop_avatar"
    /> -->
  </div>
</template>

<script>
import { getShopReq } from '@/api/order'
export default {
  props: {
    shopId: {
      type: [Number, Object, String],
      required: true
    }
  },
  data () {
    return {
      shop: {}
    }
  },
  created () {
    this.getShop()
  },
  mounted () {

  },
  methods: {
    // 获取店铺信息
    async getShop() {
      const { data: res } = await getShopReq(this.shopId)
      if (res.meta.status !== 200) return this.$toast(res.meta.msg)
      this.shop = res.data
    }
  }
}
</script>

<style scoped lang="less">
.iconfont {
  color:#f93e2e
}
</style>
